package com.wm.blog_common.constatnt;

/**
 * @author ：wm_yu
 * @description : 正则常量
 * @createTime ：2020/4/29
 */
public class RegexConstant {


    public final static String MOBLIE_REGEX = "^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$";

    public final static String EMIAL_REGEX = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";

    public final static String QQ_REGEX = "[1-9][0-9]{4,}";

    public final static String POST_CODE_REGEX = "[1-9]\\d{5}(?!\\d)";

    public final static String BUTTON_URL_REGENX = "[/]{0,1}[a-zA-Z]+[/]{1}[a-zA-Z]+";

    public final static String ID_CARD_REGEX = "^[1-9]\\d{5}(18|19|20|(3\\d))\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";

    public final static String BANK_CARD_REGEX = "[1-9]\\d{12,18}";

}

